package com.easyder.data;


import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class DBManager {
	private DBHelper helper;
	private SQLiteDatabase db;

	public SQLiteDatabase getDb() {
		return db;
	}

	public DBManager(Context context) {
		helper = new DBHelper(context);
		db = helper.getWritableDatabase();
	}


	// 关闭数据库
	public void closeDB() {
		db.close();
	}

}
